package cn.stylefeng.guns.modular.rest.agv;

import cn.stylefeng.guns.modular.agv.model.params.FeedbackTaskParam;
import cn.stylefeng.guns.modular.agv.model.params.FeedbackTaskRS;
import cn.stylefeng.guns.modular.agv.model.params.TuskAgvTaskParam;
import cn.stylefeng.guns.modular.agv.service.TuskAgvTaskService;
import cn.stylefeng.guns.modular.rest.aop.UserAop;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

/**
 *地址控制器
 */
@Controller
@RequestMapping("/rest/tuskBack")
public class RestTuskFeedbackTaskController extends BaseController {

    @Autowired
    private TuskAgvTaskService tuskAgvTaskService;
    /**
     * 新增接口
     *
     * @author zhangzh
     * @Date 2024-05-14
     */
    @RequestMapping("/feedbackTask")
    @ResponseBody
    public FeedbackTaskRS feedbackTask(@RequestBody FeedbackTaskParam feedbackTaskParam) {
        return tuskAgvTaskService.feedbackTask(feedbackTaskParam);
    }

    /**
     * 新增接口
     *
     * @author zhangzh
     * @Date 2024-05-14
     */
    @RequestMapping("/agvStorage/feedbackTask")
    @ResponseBody
    public FeedbackTaskRS agvStorageFeedbackTask(@RequestBody FeedbackTaskParam feedbackTaskParam) {
        return tuskAgvTaskService.agvStorageFeedbackTask(feedbackTaskParam);
    }

}
